/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.ocpViolation.model;

/**
 *
 * @author griddy
 */
public class USB {

    public USB(boolean state, String id) {
        this.state = state;
        this.id = id;
    }
    
    private boolean state = false;
    private String id; 
    
    public void changeState()
    {
        if(state == true)
            state = false;
        else 
            state = true;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean getState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }
   
    
}
